lcBlockSelAlign Home

Align selected entities. Entity's extention rectangle is used for the alignment.

 BOOL lcBlockSelAlign (
   HANDLE hBlock,
   int Mode,
   double X,
   double Y
 );

Parameters
hBlock
  Handle to a block.
Mode
  Alignment type, can be one of the following values:

Value Alignment
LC_ALIGN_LEFT Left side of selected entities is aligned to X
LC_ALIGN_RIGHT Right side of selected entities is aligned to X
LC_ALIGN_TOP Top side of selected entities is aligned to Y
LC_ALIGN_BOTTOM Bottom side of selected entities is aligned to Y
LC_ALIGN_CENTER Center point of selected entities is aligned to X,Y
LC_ALIGN_CENX Center X of selected entities is aligned to X
LC_ALIGN_CENY Center Y of selected entities is aligned to Y

X Y
  Coordinates of alignment point.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).